package com.xuelang.pipeline.artifact.app.harborv2.xo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.OffsetDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Label {
    /**
     * The color the label
     */
    private String color;
    /**
     * The creation time the label
     */
    @JsonProperty("creation_time")
    private OffsetDateTime creationTime;
    /**
     * The description the label
     */
    private String description;
    /**
     * The ID of the label
     */
    private Long id;
    /**
     * The name the label
     */
    private String name;
    /**
     * The ID of project that the label belongs to
     */
    @JsonProperty("project_id")
    private Long projectId;
    /**
     * The scope the label
     */
    private String scope;
    /**
     * The update time of the label
     */
    @JsonProperty("update_time")
    private OffsetDateTime updateTime;
}